package bishi;

import java.util.Scanner;

/**
 * @Author liuhaoqi
 * @Date 2020/8/24 14:32
 * @Version 1.0
 */
public class Code360_01 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = "AHIMOTVWXY";
        String s = scanner.nextLine();
        int flag = 0;
        char[] chars = s.toCharArray();
        for (int i = 0; i < s.length() / 2; i++) {
            if (chars[i] != chars[chars.length - 1]) {
                flag = 1;
                break;
            }
        }
        if (flag == 1) {
            System.out.println("NO");
        } else if (flag == 0) {
            if (s.length() % 2 != 0) {
                if (str.contains(String.valueOf(chars[s.length() / 2 ]))) {
                    System.out.println("YES");
                } else {
                    System.out.println("NO");
                }
            } else {
                System.out.println("YES");
            }
        }
    }
}
